<template>
    <div>
        <el-card class="main" shadow="never">
            <h1 class="text">{{ text }}</h1>
            <el-button :type="color?color:'info'" round @click="jump" class="button">确定</el-button>
        </el-card>
    </div>
</template>

<script>
export default {
    props: {
        text: String,
        route: String,
        color: String,
    },
    methods: {
        jump() {
            let value = '/';
            value = this.route?this.route:value;
            this.$router.push({ path : value})
            
        }
    }
}
</script>

<style lang="less" scoped>
.main {
    height: 600px;
    text-align: center;
    .text {
        font-size: 36px;
        margin-top: 150px;
    }
    .button {
        min-width: 120px;
    }
}
</style>